import request from '@/utils/request'

// 查询用户充值记录列表
export function listRechargeRecord(query) {
  return request({
    url: '/system/rechargeRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户充值记录详细
export function getRechargeRecord(id) {
  return request({
    url: '/system/rechargeRecord/' + id,
    method: 'get'
  })
}

// 新增用户充值记录
export function addRechargeRecord(data) {
  return request({
    url: '/system/rechargeRecord',
    method: 'post',
    data: data
  })
}

// 修改用户充值记录
export function updateRechargeRecord(data) {
  return request({
    url: '/system/rechargeRecord',
    method: 'put',
    data: data
  })
}

// 删除用户充值记录
export function delRechargeRecord(id) {
  return request({
    url: '/system/rechargeRecord/' + id,
    method: 'delete'
  })
}

// 导出用户充值记录
export function exportRechargeRecord(query) {
  return request({
    url: '/system/rechargeRecord/export',
    method: 'get',
    params: query
  })
}